<?php
ob_start();
header('Content-Type: text/html;charset=utf-8');
/*
	仅列出未上传完的文件和文件夹列表
	up7_files_queue表保存上传任务。所有任务上传完毕后将复制到up7_files中
*/
require '../../vendor/autoload.php';

use database\DBFile;
use utils\PathTool;

$uid = $_GET["uid"];
$cbk = $_GET["callback"];

if( strlen($uid) > 0)
{
	$json = DBFile::all_uncmp($uid);		
	if( !empty($json) )
	{
		$json = PathTool::url_encode($json);
		echo "$cbk({\"value\":\"$json\"})";
		return;
	}
}
echo $cbk . "({\"value\":null})";
header('Content-Length: ' . ob_get_length());
?>